import { Controller } from "@hotwired/stimulus"

export default class extends Controller {

  static targets = [ "input", "output" ]

  connect() {
    console.log("Hello, Stimulus!", this.element)
  }

  greet() {
    this.outputTarget.textContent = `Hello, ${this.inputTarget.value}!`
  }
}
